// pages/selfManage/selfManage.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    username:""
  },
  onLoad:function(){
    let userInfo = typeof wx.getStorageSync('userInfo')==='string'? JSON.parse(wx.getStorageSync('userInfo')):wx.getStorageSync('userInfo');
    let username=userInfo.nickName;
    this.setData({
      username
    })
  },
  goClick(){
    wx.navigateTo({
      url: '../../pages/editName/editName',
    })
  }
})